add query dir and files