added collect_switch_infomation