index bug + misc