tweak item merging message
refactor the build process
fix a warning