wip. adding debug for log