Epic setup_env rewrite.