use correct pathname for API version < 3. API v3 still needs to be fixed.