where's this logic coming from? want to make sure it has parity with the current API endpoint