routines for manipulating stashes