make api host dynamic