prepare enviroment script