made register.py work