improved the configuration API