fixed export for localstorage so now it works ok