add support of array of attributes