reconnect permanent connections routine