added log to waitOn and data call