local storage support added