added control_in, control_out and type