avoid assembling errors from duplicate files