switched to graceful-fs. removed buffered-writer
replaced callbacks with emitters