make api host configurable