better logging for connect