[wip] fix logging