add proceed_leav.c done untest. updt server.h & make