only call config->get() once