changed mapper to emit pipe-separated; working but slow?
added local/cluster detection.
working