implement custom header-driven module loader