divided api and rename joinLeague to team and leader