added logging.  Changed invalid dict type for portals which required rework of build portals. other misc