making targeted query work better in "rootless" mode