add support of a registry, to specify field to export in a class