stub out success and failure functions