moving headset init out of thread class, adding debug output