simplify message processing