local storage support, bug fixes.