fixes some issues with adding team members. still a lot to do though