working on localstorage support