simplify autotest script