additional cpp wrappers for array based indexing