fixed download handling