check for loading flag