connectWith and partitioning added to newapi