fix simulation examples

.cc only; .sh are not tested