misc template stuff