added pause/resume