add query as path variable