Module loading functionality
Fixed ctx.opt setting