controller.c: latest controller that works 4/29