added Ports methods to Map class