feat(script): add check for tds length