added config load support

a string can be provided or a config array