fix init and wifi fixes