add pause/resume functionality to consumer