add collection support for the localstorage