adding support for array attrs