attempt at fixing multiple downloads problem