run fetch in a loop