some additional error checks