add onSuccess hook helper.
update README.md