adapt script for current enviroment