added switch mechanism in control parameters