updated to block actor goroutines in main