fixes #2, config option for ttl