nodestack: improve debug print() method