* added support for arrays as a param
* bug fixing