fix plugin and add formparam to query2resource parameters