move waitgroup to Actor