PortalKit: modify sourceofconfig, change the api use