fix autotest args
change taillog script
fix switch_to function