implement the loadYaml method to load a new message from yaml file