fix renaming
actual working code, now use GitIndex constr