more logging in validate_dir