implemented the yaml parser