refactoring, add resources, start with local storage