added ProfileManager class