fixup error initialization
update example client/server