enhance error message when an element is not found