moved server setup into the config file