use enum for connector types; fix ctrl point position after an insert