updated download term script