add exceptions for warnings