more convenient API for onsuccess
v2.0.0