improvements to mk_module