check connection for fetch from sub