since this will be running forever, either change the file statement to just true or move the variable to another scope?