getting exceptions right