nodestack: add debug prints