extract parameters into array-map to keep better order