make api consistent