parse params as array