add the finished lserver.c