adding scripts so permissions will be correct