added code to explicitly track submitted files
until now we just took the first one in the area