added threading for the audio stuff yaaay