add team server side functionality