add success and failure callbacks to all calls