patched to support a default config