add support for arrays