fixed registration and starting cleaning up models.py