add ttl wrapper

better to export those errors