fixed downloadFileTask bug and added check for number of args