added param bag concept and tests