extract meaningful name for message type conditions
fix parent creation bug