trying to get exceptions working