auto change
revising api, get demo working again (issue #4)