Update getConfig to support default value