some refactoring, added action to update resources, started creating
interface for deciding about offers