file IO solved (maybe)