fixed the convertation of reply messages to readable form;
improved the quit of threads;