reorganized index files to be backward compatible with john's development