Scripts before 'authenticate', re-writing Attributes items ...