added file tracking for faster processing