add stop/pause/resume interface.