move stashes to stash.R and add extract/restore