make trim release an own function...
use trimrelease function, improved failed download handling...