added unique_by_id and unique_by_equality_and_id