did some file writing things, kind of broken right now though