converted macros and dialects to support new Ports class