changed how connection is established

and still it looses WIFI connection every ~22 seconds after loosing it
for the first time on purpose