wip: add trace statements