add port attribute