add max goroutines limit and create new slice for goroutines