use fetch for nicer error messages

turns
```
undefined method `[]' for nil:NilClass
```
into
```
KeyError: key not found: "master"
```