Add wait and run utility
Fix bug when you run createBasicLoadNode on rootNode