fix control script
fix env var