connect splines efficiently