added new thread to server's listener;s loop
made test to ensure procedure returned