put setting fix, repository pattern