make api switch easier