added role applying script