improved connection log