added ttl setting