add wrappers for calling api & checking success or failure in call