added changes to router for stash