Replace api_base at startup