added some exception code