added tagintostack patch