added the writer things...not tested yet