printPortals command added