apply loadOnStartup flag