introduced controller to emulate ag interface