fix by using ENV['API_HOST']