* ability to override array of config entries.
* removed some redundant code.