fix bug in getting criteria with _id, _rid, _pid
documentation and format