messing around with return value for failed api_call