properly return a module instance