added tunnel check