added exceptions outputing