optimize port check