why are we not using `localStorage` and passing to server?