make createConnection overridable by sub classes