a filename parser for many different files