use fetch to raise an error on nonexisting keys
yaml output of data
spec testing connection