query for multople inputs
fixed double input support
specfix