add get-portals fn, test