add default query behavior and query count