rename path element to downloaddir to represent its purpose more accurately