proper port checking