moved Connection exceptions to the root with the others.
added support for shards.