reset the file (mostly)