adding wifi interface code, very gross not clean :)