rewrite genRequires