preparing for buffered writes