catch value errors too