made presentation caching more robust
improved error logging but removed error highlighting (due to bad source refs in practice)