move functions out of config.py