fix docs exceptions
fix grouping issues
fix bugs with tmpl