tweak deiz' term script