simple and buggy script for syncing with stash