make redirect of query stricter