improved lserv2.c and lclie2.c