refactoring, fixing access rights for getters for rest interface