matching incoming text messagesd with the correct event