make sure to close the file before opening it again as windows doesn't like it if you don't