connecting the command code, added output type logic for routing