added port checking line, why not