switch repo access to a per-class basis