added calls to set a variable when configs change