debugging. The asyncore thread thing does not seem to work