turn Mapper into a module