minor improvement to module loading.