cosmetic: make module' function a bit clearer
register port names before canonicalization