added query dir.