modify sample code, use new version of enode.