use local config var in #register