prepare to connect to internet