doc and query features util files