support for paramaterised queries