added explicit wait for downloading