use variables, wifiap logic