moved config functions to separate config.go file and added function to update the weight in the config object
adds the server stats resource