fix support for square brackets by replacing with calls to lookup view function