restructured egos repo