update main xpflow script