adds handling for elements that are unexpected or ignored