deprecation warning
refactoring demo in preparation for api change
update