serve query locally