make port an attribute.