The host name for api may now be changed by an option