added first-cut code for increment control; still needs type help