ttl must be an integer