made TTL configurable and fixed typos