work on issue #158 (done api)