fix waiting loop for async calls, sleep for half-second while waiting