optimize the server base config class