fix various aspects of knob function