made flock non-blocking