fix bugs and test wifi again