wiring up with gen_server.