add checking for line connections when sleecting things