modify expect scripts