building functionality for register.py