set safety flags in script