user availabilty is not switched if api call fails