add reset passwd mod free memory