preparing to handle exceptions