move lookup override into dynamic template so controllers can do too