#495 change buffer size from 256 to 1024