starting codegen rewrite for dependencies