#110 first version of name_and_type_index, needs to be reviewed/discussed