handling of seprate instructions in between execution of script