script: add length