add support for new team membership API