improved check for relevant connections