move functions to base.py