add example for optional running