check for dir not name