added sending of teams configuration, fixed a few bugs