added support for ttl on records