added 2 triggers for connected, message_sent