implemented stop/pause/resume
index fixes