reset token after generating xml