add mulit thread for linking to wifi autimatically