set rest server as a variable