[BUG] proper enverror handling
ujson -> dep.json and default empty key for api
Merge pull request #39 from htkm/enh/better-api-approach

Enh/better api approach