moved timeq loop to the "main thread" and made it more precise