added more logic. ignored torsion files.