update demo for new api.  Issue #56