implement more functions in local data store