implemented module loading