fixed my broken exception catching