fix formatting
pass registry instance
extend registry with models and collections