api switch for dev / build