avoid passing module directly as function arg