fix wifi problems and some miscellaneous stuff
fix some more errors