fix incompatible api changes