add simple support for named queries