perms generator and other goodies