make generateAuthor a bit safer