myurl now locks access to the file , which will resolve some race conditions