some work on direct encryption while downloading, still errrors