add calls to success, failure and completion hooks