the script I'm using to manage wifi connections