api tweak
Merge pull request #22 from dimagi/refactor

api tweak