made tmp spreadsheets smarter about perms