posmerge draft code.