modified port checking