TTL support added to options

needs refactoring and sorce cleanup