wip adding debug output