added waiting for async callbacks from other threads, privacypolicy gives error