add: add auto_detect to change the gw_stat