moving the connected message to after the connect method