added pauseall/resumeall functionality