creates pmc.registryAdd function