simplify handling of message's metadata