catch and report localStorage errors
remove importations of unused modules