updated buffer size for file writes