add service for extract localstorage in a service