stateful goroutines