added partial support for arrays