clean up + optimization flags