bestack: add support for nodes resetting the stack