Some housekeeping

moved some members from ports to constants