added setDir for filedownloader