improve localStorage usage references