edited wpa functions, added scripts