make api work