modify local storage api