added connect and disconnect messages