new parsescript to fix errors
 amending script