fix upgrade
fix invitecode request