more fixes to running scripts