remove unneccesary options from simplify and optimize