refine CMD_CAPS handling