add pause resume support