add/edit optimization flags