clean up the file stuff a little