utility scripts to transform data about role priorities