add localstorage facility