refactoring linux profile