proper handling of autoreloading file already being autoreloaded