fixed some missing error checks