script works, only problems with condor now