criteria function changes id string by ObjectID(string) when some field with name _id is detected at criteria param.
internal err string is encapsulated into an error json-rpc object {code:-1, message:err};