add header for CD, add conditionals for building with proper header
fix indent on the conditional; switch from if to ifd