updates for allowing lazy loading of profiles and to allow a standalone out of container import