get rid of async loop