waiting for all to load before compiling