more indices (buggy), better error codes, URIs as ids