moved checking of file name to separate routine for IPCA, too