usage example for registry