fix goroutines and validation of url