threads, connection handling prototype