query parameter bounds
dataset checking plus some bugs