narrowed down error catcher