Maybe I misread load_spec, I thought it returned a value only when a doc was returned as you don't seem to use the return value here at all.