added file match with validation