add wrapper of success callback