more refactoring
trying to update the WiFi API to make it more friendly to other WiFi stuff