move this block outside the loop; any one file may not have type specs