check for invalid connections