fix apiv2 authentication