convert set param to hash if needed