enable port check and make invalid port printable