add resume option
fix examples