api fixing