adjust to minor api changes in cartographer.