rewrite .set_env_after_compile