customisable buffer on csv writer