added waitgroup for actors in main