WIP for local storage
fixes compile errors