added default query impl