first experiments with threads and tcp listening