wait until download complete