remove extensions from external files