also accept when id and rev are set