adding permission to scripts