fixes to save ast optimizer
codestyle changes
fixes to save ast eval