change the way models are registered