allow to set custom thread-buffer size