added something to set the hostname to the server