rearranged pause/resume behavior