Feature/use cids in index

Using cids instead of id. This way we can use models without ids :sunglasses: