- implemented scanQuery for multiple machines