added restart flag to example