upstream api fix