added loading indices from file