support paramets and fields that are lists in scala