parser for yaml file