ensure refid_rule param is set before accessing it from AppConfig