refine class ServerAdapter
remove unused header file