corrected wifi config script