fixed check for running tunnels