adapt config.py to new api