a fix for debug code in index, and abstracting out demo files for a post