fixed grep file enumeration