add simpler file/link pattern to improve speed.