make api listener somewhat work