added jython query scripting