reordered messages
added try/except for messages init