refactored services
moved team logic to json file