minor code tidyup
fixed conversion of inputs to json array
initial fq parm handling, but note issue #611 lodged