fix indexStatus and indexWait, fixes #29

Let me know if this is not what you had in mind.