refactoring profileconfig structure