handle possible errors on availability