using the right signature for the success callback. Fixes #28. Thank you @akaan