small chananges for localStorage stuff