trim im_controller to reduce warnings and trim pipeline for test