manually inject query