Enhance class app : enhance config loading for profiles