refactored config.py a bit