adding script flags