referee index without major errors, not everything working yet