re-register loader to avoid namespace-not-loaded error in console mode