Index: branches/network/src/lib/network/connection_monitor.cc
===================================================================
--- branches/network/src/lib/network/connection_monitor.cc	(revision 7770)
+++ branches/network/src/lib/network/connection_monitor.cc	(revision 7772)
@@ -33,4 +33,6 @@
   this->incomingUnzippedBandWidth = 0;
   this->outgoingUnzippedBandWidth = 0;
+  this->incomingZippedBandWidth = 0;
+  this->outgoingZippedBandWidth = 0;
   this->nIncomingPackets = 0;
   this->nOutgoingPackets = 0;
@@ -62,6 +64,8 @@
   
   for ( int i = 0; i < length; i++ )
+  {
     if ( data[i] == '\0' )
       nZeroBytes++;
+  }
   
   NETPRINTF(n)( "ZEROBYTES: %d (%f%%)\n", nZeroBytes, ((float)100)*nZeroBytes/length );
@@ -82,9 +86,21 @@
   }
       
-  while ( sentStateTicks.begin()->first <= ackedState )
-    sentStateTicks.erase( sentStateTicks.begin() );
+  //TODO cleanup list
+//  while ( sentStateTicks.begin()->first <= ackedState )
+//  {
+//    NETPRINTF(n)("removing old state\n");
+//    sentStateTicks.erase( sentStateTicks.begin() );
+//  }
+  
+  NETPRINTF(n)("adsf\n");
       
+  //TODO cleanup list
+#if 0
   while ( ackDelay.size() > N_PACKETS_FOR_PING )
+  {
+    NETPRINTF(n)("removing old ackdelay\n");
     ackDelay.erase( ackDelay.begin() );
+  }
+#endif
       
   ping = 0;
@@ -112,5 +128,7 @@
   // delete old packets
   while ( packetHistory.begin()->first < tick - MSECS_TO_CALC_BWIDTH )
+  {
     packetHistory.erase( packetHistory.begin() );
+  }
   
   float res = 0.0f;
@@ -131,3 +149,11 @@
 }
 
+/**
+ * calculates max packet size you can send now to fit into bandwidth
+ * @return 
+ */
+int ConnectionMonitor::getMaxPacketSize( )
+{
+}
 
+
Index: branches/network/src/lib/network/connection_monitor.h
===================================================================
--- branches/network/src/lib/network/connection_monitor.h	(revision 7770)
+++ branches/network/src/lib/network/connection_monitor.h	(revision 7772)
@@ -24,9 +24,11 @@
     void processUnzippedOutgoingPacket( byte * data, int length, int stateId );
     void processUnzippedIncomingPacket( byte * data, int length, int stateId, int ackedState );
-    void processZippedPacket(  );
+
     
     void calculatePing();
     
     bool hasTimedOut(){ return ( lastPacketTick + SECS_TO_TIMEOUT*1000 < SDL_GetTicks() ) && nIncomingPackets > 0; }
+    
+    int getMaxPacketSize();
     
   private:
@@ -40,4 +42,7 @@
     std::map<int,int>   outgoingUnzippedPacketHistory;
     
+    std::map<int,int>   incomingZippedPacketHistory;
+    std::map<int,int>   outgoingZippedPacketHistory;
+    
     std::list<int>      ackDelay;
     int                 ping;
@@ -45,4 +50,7 @@
     float               incomingUnzippedBandWidth;
     float               outgoingUnzippedBandWidth;
+    
+    float               incomingZippedBandWidth;
+    float               outgoingZippedBandWidth;
     
     int                 nIncomingPackets;
Index: branches/network/src/lib/network/network_game_manager.cc
===================================================================
--- branches/network/src/lib/network/network_game_manager.cc	(revision 7770)
+++ branches/network/src/lib/network/network_game_manager.cc	(revision 7772)
@@ -467,4 +467,7 @@
 {
   /* create new playable for Player*/
+
+  assert ( SharedNetworkData::getInstance()->isGameServer() );
+
   PRINTF(0)("Request for creation: %i\n", userId);
   int uniqueId = this->createEntity(CL_SPACE_SHIP, userId);
Index: branches/network/src/lib/network/network_stream.cc
===================================================================
--- branches/network/src/lib/network/network_stream.cc	(revision 7770)
+++ branches/network/src/lib/network/network_stream.cc	(revision 7772)
@@ -336,4 +336,6 @@
             this->networkGameManager->setUniqueID( it->second.handshake->getNetworkGameManagerId() );
             MessageManager::getInstance()->setUniqueID( it->second.handshake->getMessageManagerId() );
+            
+            handleNewClient( it->second.userId );
           }
 
@@ -343,5 +345,4 @@
           it->second.handshake = NULL;
           
-          handleNewClient( it->second.userId );
         }
         else
@@ -597,4 +598,6 @@
 void NetworkStream::cleanUpOldSyncList( )
 {
+  //TODO dont return do something
+  return;
   int now = SDL_GetTicks();
   
