move settings to entities.
refactor.