added support for args as array