re-wrote wifi loop to perform roaming