Pass transport as kwarg to avoid recursively calling connect