xpoststudy added, now variables are read through query variable