added the loc_max files to detection