use filename instead of regex