add pat controller