changes to make server accept message until client saye exit