what's this `alert(perm)` bit for?