make safety flags work