add better fallbacks for filename on traces