added way to use a variable for an api host