made goroutines block until ready