check the dir