added wifi parsing and scanning functions