adding missing port check