better module loading support