additional error logic