add sample code for ttl injection