- valid directory checking