detect current network