make sure connection exists