added exceptions/warnings