error template now extends global template (to remove duplicate debug output), buffering output