fixing some xero api issues