v0.2.0: return promises; simplified api; no more code generation