set savedir to local storage