set and read configurations from localstorage