added team management functionality