catching more exceptions