no need to keep the file in the ChosenFile class, try to clean up open files and large objects to reduce memory usage