make sure we have an open connection