added apid registration