- refactored some bits
- added multiple config support