change api for deployed