use file info extension.