added cap_index for the capability table (Section 7.4) without using anything special