added threading to audio