add some more helpers, add the ability to write buffers to files on disk