untested 'get_comp_csi function