modify for td logging