added log output as delegate