add exceptions generation