add bufferSize option