added default bufferSize to config