added reader_count and buffer_size params