simplifying message parsing
fixing a crash on startswith? being passed null