test
restructured the config system
made config more robust
a little cleanup