add localforage support