fixed the file open, i think