debug: add logging