added an attempt at being able to pause doppio. I do not know how it interacts with seperate threads