same yaml parsing code as nerve
Merge pull request #47 from airbnb/fix_yaml

same yaml parsing code as nerve