refactor end n integrate server okay.