added some more id conversion bits