handle configuration changes