rework build process to output one single file