compatibility with stash 3.0+