removed temp buffers.
added start of IO and saving.