parse the params