improve erlang simple example
implement simple example, sans global handler (for now)