update stash creation to newer api