add ttl support