profiles adapter refactoring