restructured index file a bit