add minimal query interface