allow defs in module definitions using parameters