make wait_for_server async