improved handling of parameter changes