be stricter about element class validation in user defined lookup methods