messages can now be send in the connect handler