support pre port validation

'<code/>'?