move _LOADED from registry to global