adding allow_query