first working refactor of white portals