+ fix for licence templates.
+ improved error messaging for permission refusals.