finish first draft of directory_validator