use local storage instead of REST