implemented the new pausing method but flashing needs fixing