pass the dir along