WIP: added support for arrays in parameter