some defaults, added preview mode to render_example (just for testing endpoint)