simplify reading messages