re impl serv_client, fix starup script for FreeBSD
complete basic chat logic