network detection implemented