added stuff to example to mimic #322
issue #322