throw exceptions when attributes dont exist