added delays in while loops

was exceeding api limits