added script for permissions