used spex.js internal objects for query execution