wifi issue solved using asynchronous