add factory method for creating profiles from an already existing config file