stash
thanks martin for catching this bug. Trie should work the same as CPP now
some fixes