parse simple params and array