add except handle code