remove Message.from_dict method and more strict error handling