wifiap: better run logic