prequery lua functionality documentation (it is internal)