only reverse the filename, simplify match