code complete wiring up public api with gen_server2 call