use net.Dialer from go 1.1. instead of a closure