build process improvement, fold in stateLoader to detour, stateLoader parameters organization, cross-domain support for loader