added trackIsLoaded call to global