reversions and bug fixes for stats
fix for template if no defcon data present