fixed script perms