implementing query library and allowCrossDomain middleware