implemented custom oai queries.