adding ttl support