updated handling of built-in demo file