added local storage handler