add pause/resume functions