introduce registry interface.