add better dependency loading check

Original dependency check was too vague. Added a flag to specifically set if all dependencies have loaded or not.