modify scripts to work on jenkins