change message matching code to look for named message types as well
as numbered ones.