compile against new api