initialize standard template vars earlier