add connectivity and bezier extraction: needs validation