script stopped working - went back to earlier version