added server thread.