added get_idx option
update