allow multiple args through query and match
use latest subindex
allow multiple args for query fn