fix api breakage