add support for LocalStorage