added logging to investigate reported issue with localStorage