massive update to config infrastructure. setup.py still needs some work