fix api changes