modified script for teamcity