fixed shit, onto the real file functions now