some changes to increase wifi stability