added log to demo