WIP refactoring profile parser