Exposing the connect message
Fixing the flags, they were not working properly