refactored function to use just an args argument
updated file adapter to return arrays of [param, json] instead of jsut json, amnded expression assign to allow +=