added pause/resume support to plugins