make sure we have the api first