more updates to loading of apps and sub apps