invalid thread #ifdef, verbose xpt while authenticating