output id mapping as hfile too