add localstorage enable/disable support