major changes - add RexManager class