almost finished, write and read is starting to smell correct

fdsa