adds savelocal
adds promise to savelocal