decode stash, currently broken