add pause support